home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
UTILFILE
/
HANDYDOS.LZH
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-10-28
|
2KB
|
66 lines
@echo off
cls
rem --- make sure the user specified valid drive letter (we allow C to F).
if %1a == a goto noDriveSpecified
if %1 == c: goto begin
if %1 == C: goto begin
if %1 == d: goto begin
if %1 == D: goto begin
if %1 == e: goto begin
if %1 == E: goto begin
if %1 == f: goto begin
if %1 == F: goto begin
if %2 == a: goto floppy
if %2 == A: goto floppy
if %2 == b: goto floppy
if %2 == B: goto floppy
Goto notOnThatDrive
:begin
echo.
echo ┌─┐
echo │I│ ATI HandyDOS Software Installation
echo │N│
echo │S│ This will create a directory called %1\HANDYDOS on your hard disk,
echo │T│ and will install HandyDOS in that directory from this diskette.
echo │A│
echo │L│ If you don't want to install HandyDOS right now, press Ctrl-Break.
echo │L│
echo └─┘
pause
rem --- create \HANDYDOS on the current drive.
echo
echo Creating directory %1\HANDYDOS...
md %1\HANDYDOS
echo
echo Copying HandyDOS files...
copy *.exe %1\HANDYDOS
copy handydos.doc %1\HANDYDOS
copy register %1\HANDYDOS
copy tour.bat %1\HANDYDOS
echo * Target Disk Complete - Remove Disk*
%1
cd %1\HANDYDOS
echo HandyDOS is now installed!
pause
tour
goto end
:noDriveSpecified
rem --- user didn't specify a drive letter followed by a colon.
echo
echo How to use INSTALL:
echo To install software on your hard disk, specify the drive to install HandyDOS
echo onto. For example, to install HandyDOS on drive C, type "INSTALL C:" and
echo press Enter.
goto end
:notOnThatDrive
rem --- user specified invalid drive letter.
echo
echo Installation Error: The hard drive letter must be a letter from C to F,
echo and must be followed by a colon. For example, "INSTALL C:" will install
echo HandyDOS on drive C.
:end
echo